//package no.group.gowther.rest;
//
//import no.group.gowther.dao.entity.CompressPwd;
//import no.group.gowther.service.dto.ListDTO;
//import no.group.gowther.rest.vo.Result;
//import no.group.gowther.rest.vo.param.AddCompressPwdParam;
//import no.group.gowther.rest.vo.param.QueryCompressPwdParam;
//import no.group.gowther.rest.vo.param.UncompressFileParam;
//import no.group.gowther.service.CompressFileService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.validation.annotation.Validated;
//import org.springframework.web.bind.annotation.*;
//
//import javax.validation.constraints.NotBlank;
//
///**
// * @author ayatsuji
// * @date 2022-04-11 23:12
// * @since
// */
//@Validated
////@RestController
//@RequestMapping("compress")
//public class CompressFileController {
//    @Autowired
//    private CompressFileService compressFileService;
//
//    @PostMapping("uncompress/preCheck")
//    public Result<?> preCheckUncompress(@RequestBody @Validated UncompressFileParam preCheckParam) {
//        compressFileService.preCheckUncompress(preCheckParam);
//        return Result.success();
//    }
//
//    @PostMapping("uncompress")
//    public Result<?> uncompress(@RequestBody @Validated UncompressFileParam uncompressFileParam) {
//        compressFileService.uncompress(uncompressFileParam);
//        return Result.success();
//    }
//
//    @GetMapping("pwd")
//    public Result<ListDTO<CompressPwd>> queryCompressPwd(@Validated QueryCompressPwdParam queryCompressPwdParam) {
//        return Result.success(compressFileService.queryCompressPwd(queryCompressPwdParam));
//    }
//
//    @DeleteMapping("pwd/{pwdId}")
//    public Result<?> deleteCompressPwd(@PathVariable @NotBlank String pwdId) {
//        compressFileService.deleteCompressPwd(pwdId);
//        return Result.success();
//    }
//
//    @PostMapping("pwd")
//    public Result<?> addCompressPwd(@RequestBody @Validated AddCompressPwdParam addCompressPwdParam) {
//        compressFileService.addCompressPwd(addCompressPwdParam);
//        return Result.success();
//    }
//}
